home *** CD-ROM | disk | FTP | other *** search
- package org.spruce.midp.driver;
-
- import javax.microedition.lcdui.Alert;
- import javax.microedition.lcdui.AlertType;
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Display;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Form;
- import javax.microedition.lcdui.Image;
- import javax.microedition.lcdui.List;
- import javax.microedition.midlet.MIDlet;
-
- public final class Driver extends MIDlet implements CommandListener {
- // $FF: renamed from: a java.lang.String[]
- private static final String[] field_0 = new String[]{method_0("\u0002Se*"), method_0("\u001aZh#"), method_0("\u0013]k&:")};
- // $FF: renamed from: b java.lang.String[]
- private static final String[] field_1 = new String[]{method_0("\u0001Ka6<rKl6n1^vs9;Kls\"7Yps/<[$!'5Wps/ Mk$=|5"), method_0("\u0013\\g6\"7Me'+rHm'&rJts/ Mk$ur]v2%7\u001fs:::\u001f`<9<\u001fe!<=H*Y"), method_0("\u0013Ik:*rWk?+!\u001fe=*rPp;+ \u001fg2<!\u0011$\u0012\"!P$'<+\u001fp<n3Ik:*rHe'+ \u001ft<!>L$~n&Wa*n3Mas=>Vt#+ F*Y"), method_0("\u0015Zps/!\u001fi2 +\u001fb&+>\u001fw&>\"Sa>+<Kws/!\u001ft<=!Vf?+r\u0012$*!'M$5;7S$:=rMq= ;Qcs!'K$5/!K*s\u001a:Z$5;7S$?+$Zhs'!\u001fw;!%Q$< rKl6n>Zb'`X"), method_0("\u0016Pjt:r[v:87\u001fk=n&Was) ^w n=M$*!'\u0018h?n0Z$?!!Vj4n+Pq!n\"Pm=:!\u0011\u000e")};
- // $FF: renamed from: c java.lang.String
- private static final String field_2 = "\u0001Ov&-7\u001f@!'$ZvY\u00187M*s\u007f|\u000e\u000e├║n`\u000f4an0F$$9%\u0011w#<'\\a}! X";
- // $FF: renamed from: d org.spruce.midp.driver.c
- private c field_3;
- // $FF: renamed from: e javax.microedition.lcdui.Command
- private Command field_4;
- // $FF: renamed from: f javax.microedition.lcdui.Command
- private Command field_5;
- // $FF: renamed from: g javax.microedition.lcdui.Command
- private Command field_6;
- // $FF: renamed from: h javax.microedition.lcdui.Command
- private Command field_7;
- // $FF: renamed from: i javax.microedition.lcdui.Command
- private Command field_8;
- // $FF: renamed from: j javax.microedition.lcdui.Command
- private Command field_9;
- // $FF: renamed from: k javax.microedition.lcdui.Command
- private Command field_10;
- // $FF: renamed from: l javax.microedition.lcdui.Command
- private Command field_11;
- // $FF: renamed from: m javax.microedition.lcdui.Form
- private Form field_12;
- // $FF: renamed from: n javax.microedition.lcdui.Display
- private Display field_13;
- // $FF: renamed from: o javax.microedition.lcdui.List
- private List field_14;
- // $FF: renamed from: p boolean
- public static boolean field_15;
-
- public Driver() {
- boolean var2 = field_15;
- super();
- this.field_4 = new Command(method_0("\u0017Gm'"), 7, 1);
- this.field_5 = new Command(method_0("\u001aZh#"), 4, 1);
- this.field_6 = new Command(method_0("\u0016Pj6"), 6, 1);
- this.field_7 = new Command(method_0("\u0002Se*"), 4, 1);
- this.field_8 = new Command(method_0("\u0002^q +"), 3, 1);
- this.field_9 = new Command(method_0("\u0011Pj''<Ja"), 3, 1);
- this.field_10 = new Command(method_0("\u0003Jm'"), 6, 1);
- this.field_11 = new Command(method_0("\u0001Zh6-&"), 4, 1);
- this.field_12 = new Form(method_0("\u0015^i6n Jh6="));
- this.field_14 = new List(method_0("\u001fzJ\u0006"), 3, field_0, (Image[])null);
- int var1 = 0;
- if (var2) {
- this.field_12.append(field_1[var1]);
- ++var1;
- }
-
- while(true) {
- while(var1 < field_1.length) {
- this.field_12.append(field_1[var1]);
- ++var1;
- }
-
- this.field_12.addCommand(this.field_6);
- this.field_12.setCommandListener(this);
- this.field_14.addCommand(this.field_4);
- this.field_14.addCommand(this.field_11);
- this.field_14.setCommandListener(this);
- if (!var2) {
- if (org.spruce.midp.common.c.i) {
- field_15 = !var2;
- }
-
- return;
- }
-
- ++var1;
- }
- }
-
- public void startApp() {
- boolean var1 = field_15;
- Display var10000 = this.field_13;
- if (!var1) {
- if (var10000 == null) {
- this.field_13 = Display.getDisplay(this);
- new org.spruce.midp.common.c(this.field_13, this.field_14);
- if (!var1) {
- return;
- }
- }
-
- var10000 = this.field_13;
- }
-
- var10000.setCurrent(this.field_14);
- }
-
- public void commandAction(Command var1, Displayable var2) {
- boolean var4;
- Command var10000;
- Command var10001;
- label87: {
- label88: {
- label89: {
- var4 = field_15;
- var10000 = var1;
- var10001 = this.field_4;
- if (!var4) {
- if (var1 == var10001) {
- this.destroyApp(false);
- ((MIDlet)this).notifyDestroyed();
- if (!var4) {
- return;
- }
- }
-
- var10000 = var1;
- var10001 = this.field_6;
- if (var4) {
- break label89;
- }
- }
-
- if (var10000 == var10001) {
- this.field_13.setCurrent(this.field_14);
- if (!var4) {
- return;
- }
- }
-
- var10000 = var1;
- var10001 = this.field_8;
- if (var4) {
- break label88;
- }
- }
-
- if (var10000 == var10001) {
- this.field_3.a(true);
- this.field_3.removeCommand(this.field_8);
- this.field_3.addCommand(this.field_9);
- if (!var4) {
- return;
- }
- }
-
- var10000 = var1;
- var10001 = this.field_9;
- if (var4) {
- break label87;
- }
- }
-
- if (var10000 == var10001) {
- this.field_3.a(false);
- this.field_3.removeCommand(this.field_9);
- this.field_3.addCommand(this.field_8);
- if (!var4) {
- return;
- }
- }
-
- var10000 = var1;
- var10001 = this.field_10;
- }
-
- label59: {
- label90: {
- if (!var4) {
- if (var10000 == var10001) {
- this.field_3.c();
- this.field_13.setCurrent(this.field_14);
- if (!var4) {
- return;
- }
- }
-
- var10000 = var1;
- var10001 = this.field_11;
- if (var4) {
- break label90;
- }
- }
-
- if (var10000 == var10001) {
- break label59;
- }
-
- var10000 = var1;
- var10001 = List.SELECT_COMMAND;
- }
-
- if (var10000 != var10001) {
- return;
- }
- }
-
- label45: {
- label44: {
- Driver var5 = this;
- if (!var4) {
- switch (this.field_14.getSelectedIndex()) {
- case 0:
- this.field_3 = new c(Display.getDisplay(this));
- this.field_3.addCommand(this.field_10);
- this.field_3.addCommand(this.field_8);
- this.field_3.setCommandListener(this);
- this.field_13.setCurrent(this.field_3);
- var5 = this;
- break;
- case 1:
- break label44;
- case 2:
- break label45;
- default:
- return;
- }
- }
-
- var5.field_3.b();
- if (!var4) {
- return;
- }
- }
-
- this.field_13.setCurrent(this.field_12);
- if (!var4) {
- return;
- }
- }
-
- Alert var3 = new Alert(method_0("\u0013]k&:"), method_0("\u0001Ov&-7\u001f@!'$ZvY\u00187M*s\u007f|\u000e\u000e├║n`\u000f4an0F$$9%\u0011w#<'\\a}! X"), (Image)null, AlertType.INFO);
- var3.setTimeout(-2);
- this.field_13.setCurrent(var3);
- }
-
- public void pauseApp() {
- this.field_13.setCurrent((Displayable)null);
- }
-
- public void destroyApp(boolean var1) {
- }
-
- // $FF: renamed from: a (java.lang.String) java.lang.String
- private static String method_0(String var0) {
- char[] var1 = var0.toCharArray();
- int var2 = var1.length;
- int var3 = 0;
- char[] var10000;
- int var10001;
- if (var2 <= 1) {
- var10000 = var1;
- var10001 = var3;
- } else {
- if (var3 >= var2) {
- return new String(var1);
- }
-
- var10000 = var1;
- var10001 = var3;
- }
-
- while(true) {
- char var10002 = var10000[var10001];
- byte var10003;
- switch (var3 % 5) {
- case 0:
- var10003 = 82;
- break;
- case 1:
- var10003 = 63;
- break;
- case 2:
- var10003 = 4;
- break;
- case 3:
- var10003 = 83;
- break;
- default:
- var10003 = 78;
- }
-
- var10000[var10001] = (char)(var10002 ^ var10003);
- ++var3;
- if (var2 == 0) {
- var10000 = var1;
- var10001 = var2;
- } else {
- if (var3 >= var2) {
- return new String(var1);
- }
-
- var10000 = var1;
- var10001 = var3;
- }
- }
- }
- }
-